﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Prj2011r.aspx.cs" Inherits="Updms.Prj.Prj2011r" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>
<%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments" TagPrefix="chartfxadornments" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Prj2011r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="top_area" colspan="2">
			<!-- Top 시작 -->
			<ucTop:Top id="Top" runat="server"></ucTop:Top>
			<!-- Top 끝 -->
		</td>
	</tr>
	<tr>
		<td id="menu_area">
			<!-- 메뉴 시작 -->
			<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
			<!-- 메뉴 끝 -->
		</td>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Prj2011r" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_chart" Text="챠트" runat="server" CssClass="ibtn ibtn_chart" OnClientClick="return chkSearch()" OnClick="ibtn_chart_Click"></asp:linkbutton>
			</div>
			<!-- 버튼 끝 -->
			<!-- 검색 시작 -->
			<table class="table_search">
				<tr>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_prj_id" Text="프로젝트" runat="server" /></td>
					<td class="ctl" width="35%"><asp:dropdownlist id="ddl_search_prj_id" runat="server" Width="99.6%" CssClass="ddl" AutoPostBack="True" OnSelectedIndexChanged="ddl_search_prj_id_SelectedIndexChanged"></asp:dropdownlist></td>
					<td class="lbl" width="10%"><asp:Literal id="ltr_search_year_month" Text="기준년월" runat="server" /></td>
					<td class="ctl" width="45%">
						<asp:dropdownlist id="ddl_search_from_year" runat="server"></asp:dropdownlist><asp:dropdownlist id="ddl_search_from_month" runat="server">
							<asp:ListItem Value="01">01</asp:ListItem>
							<asp:ListItem Value="02">02</asp:ListItem>
							<asp:ListItem Value="03">03</asp:ListItem>
							<asp:ListItem Value="04">04</asp:ListItem>
							<asp:ListItem Value="05">05</asp:ListItem>
							<asp:ListItem Value="06">06</asp:ListItem>
							<asp:ListItem Value="07">07</asp:ListItem>
							<asp:ListItem Value="08">08</asp:ListItem>
							<asp:ListItem Value="09">09</asp:ListItem>
							<asp:ListItem Value="10">10</asp:ListItem>
							<asp:ListItem Value="11">11</asp:ListItem>
							<asp:ListItem Value="12">12</asp:ListItem>
						</asp:dropdownlist>~
						<asp:dropdownlist id="ddl_search_to_year" runat="server"></asp:dropdownlist><asp:dropdownlist id="ddl_search_to_month" runat="server">
							<asp:ListItem Value="01">01</asp:ListItem>
							<asp:ListItem Value="02">02</asp:ListItem>
							<asp:ListItem Value="03">03</asp:ListItem>
							<asp:ListItem Value="04">04</asp:ListItem>
							<asp:ListItem Value="05">05</asp:ListItem>
							<asp:ListItem Value="06">06</asp:ListItem>
							<asp:ListItem Value="07">07</asp:ListItem>
							<asp:ListItem Value="08">08</asp:ListItem>
							<asp:ListItem Value="09">09</asp:ListItem>
							<asp:ListItem Value="10">10</asp:ListItem>
							<asp:ListItem Value="11">11</asp:ListItem>
							<asp:ListItem Value="12">12</asp:ListItem>
						</asp:dropdownlist>
					</td>
				</tr>
			</table>
			<!-- 검색 끝 -->
			<!-- 챠트 시작 -->
			<table id="table_chart" class="default" runat="server">
				<tr>
					<td width="60%"><div class="sub_title_icon"><asp:Literal id="ltr_stitle_count_week" Text="주별 발생건수(접수일기준)" runat="server" /></div></td>
					<td width="40%"><div class="sub_title_icon"><asp:Literal id="ltr_stitle_count_month" Text="월별 발생건수(접수일기준)" runat="server" /></div></td>
				</tr>				
				<tr>
					<td class="td_box">
						<chartfx7:chart id="chart_line_weekly" runat="server" height="480px" width="600px" Palette="ChartFX6.ChartFX6" ImageSettings-Interactive="False">
							<AxisY Title-Text="">
							<Grids Major-Style="Dash" Interlaced="True"></Grids>
								<LabelsFormat CustomFormat="###,###,##0" />
							</AxisY>

							<AxisX LabelAngle="90" Title-Text="">
							<Grids Major-Visible="False"></Grids>
							</AxisX>

							<AllSeries Gallery="Lines" PointLabels-Visible="True"></AllSeries>

							<LegendBox Visible="False"></LegendBox>

							<MainPane AxisY-Title-Text=""></MainPane>
							<SpecialObjects>
								<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
									Type="None">
								</chartfxadornments:SimpleBorder>
								<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
									ColorFrom="Transparent" EffectArea="0">
								</chartfxadornments:GradientBackground>
							</SpecialObjects>
							<Series>
								<chartfx7:SeriesAttributes MarkerSize="1" MarkerShape="none" />
								<chartfx7:SeriesAttributes />
								<chartfx7:SeriesAttributes />
							</Series>
						</chartfx7:chart>
					</td>
					<td class="td_box">
						<chartfx7:chart id="chart_line_monthly" runat="server" height="480px" width="400px" Palette="ChartFX6.ChartFX6" ImageSettings-Interactive="False">
							<AxisY Title-Text="">
							<Grids Major-Style="Dash" Interlaced="True"></Grids>
								<LabelsFormat CustomFormat="###,###,##0" />
							</AxisY>

							<AxisX LabelAngle="90" Title-Text="">
							<Grids Major-Visible="False"></Grids>
							</AxisX>

							<AllSeries Gallery="Lines" PointLabels-Visible="True"></AllSeries>

							<LegendBox Visible="False"></LegendBox>

							<MainPane AxisY-Title-Text=""></MainPane>
							<SpecialObjects>
								<chartfxadornments:SimpleBorder AssemblyName="ChartFX.WebForms.Adornments" Color="Transparent"
									Type="None">
								</chartfxadornments:SimpleBorder>
								<chartfxadornments:GradientBackground AssemblyName="ChartFX.WebForms.Adornments"
									ColorFrom="Transparent" EffectArea="0">
								</chartfxadornments:GradientBackground>
							</SpecialObjects>
							<Series>
								<chartfx7:SeriesAttributes MarkerSize="1" MarkerShape="none" />
								<chartfx7:SeriesAttributes />
								<chartfx7:SeriesAttributes />
							</Series>
						</chartfx7:chart>
					</td>
				</tr>
			</table>
			<!-- 챠트 끝 -->
			<!-- 리스트셋 시작 -->
			<!-- 리스트셋 끝 -->
			<!-- 설명 시작 -->			
			<!-- 설명 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_search_flag" runat="server"></asp:label>
			</div>
			<!-- 히든값 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//검색
	function chkSearch() {
		var from_dt = $F("ddl_search_from_year") + $F("ddl_search_from_month");
		var to_dt = $F("ddl_search_to_year") + $F("ddl_search_to_month");
		
		if (!isDateSeq(from_dt, to_dt)) {
			msgBox.alert(getMsg(MSG_ERR_022)); //시작일자가 종료일자보다 늦을수 없습니다
			return false;
		}
	}

</script>
</body>
</html>